//package com.info.zhiduoduo.weixin.controller;
//
//import com.info.zhiduoduo.common.annotation.ZddLog;
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.constants.system.ZddLogType;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.core.formbean.CheckLongTermSubProjectFormBean;
//import com.info.zhiduoduo.repository.dto.project.LongProjectDto;
//import com.info.zhiduoduo.repository.dto.project.ProjectBriefDto;
//import com.info.zhiduoduo.weixin.formbean.project.ListSubProjectFormBean;
//import com.info.zhiduoduo.weixin.formbean.project.LongProjectListFormBean;
//import com.info.zhiduoduo.weixin.formbean.project.SubmitLongTermSubProjectFormBean;
//import com.info.zhiduoduo.weixin.service.LongProjectService;
//
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import javax.validation.Valid;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//
//@RestController
//@RequestMapping("/longProject")
//@Api(tags = "长期项目")
//public class LongProjectController {
//
//    @Resource
//    LongProjectService longProjectService;
//
//    @ApiOperation("获取长期项目详情")
//    @PostMapping("/detail")
//    public SmartResult<LongProjectDto> getProjectDetail(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//        return longProjectService.getProjectDetail(formBean);
//    }
//
//    /**
//     * 获取项目列表
//     */
//    @PostMapping("/list")
//    @ApiOperation("长期项目列表")
//    public SmartResult<ProjectBriefDto> getProjectList(@RequestBody BaseSimpleFormBean<LongProjectListFormBean> formBean) {
//        return longProjectService.getProjectList(formBean);
//    }
//
//    @ZddLog(name = "创客提交验收长期项目的子项目")
//    @ApiOperation("创客提交验收长期项目的子项目")
//    @PostMapping("/userSubmitLongTermSubProject")
//    public SmartResult userSubmitLongTermSubProject(@RequestBody BaseSimpleFormBean<SubmitLongTermSubProjectFormBean> formBean) {
//        return longProjectService.userSubmitLongTermSubProject(formBean);
//    }
//
//    @ZddLog(type = ZddLogType.QUERY,name = "企业验收长期项目的子项目")
//    @ApiOperation("企业验收长期项目的子项目")
//    @PostMapping("/companyCheckLongTermSubProject")
//    public SmartResult companyCheckLongTermSubProject(@Valid @RequestBody BaseSimpleFormBean<CheckLongTermSubProjectFormBean> formBean) {
//        return longProjectService.companyCheckLongTermSubProject(formBean);
//    }
//
//    @ApiOperation("获取长期项目的子项目列表")
//    @PostMapping("/listSubProjects")
//    public SmartResult<ProjectBriefDto> listSubProjects(@RequestBody BaseSimpleFormBean<ListSubProjectFormBean> formBean) {
//        return longProjectService.listSubProjects(formBean);
//    }
//}
